#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}


# copy sql
echo "begin copy sql "
cp ../sql/ry_20230706.sql ./mysql/db
cp ../sql/ry_config_20220929.sql ./mysql/db

# copy html
echo "begin copy html "
cp -r ../care-ui/dist/** ./nginx/html/dist


# copy jar
echo "begin copy care-gateway "
cp ../care-gateway/target/care-gateway.jar ./care/gateway/jar

echo "begin copy care-auth "
cp ../care-auth/target/care-auth.jar ./care/auth/jar

echo "begin copy care-visual "
cp ../care-visual/care-monitor/target/care-visual-monitor.jar  ./care/visual/monitor/jar

echo "begin copy care-system "
cp ../care-modules/care-system/target/care-system.jar ./care/modules/system/jar

echo "begin copy care-file "
cp ../care-modules/care-file/target/care-file.jar ./care/modules/file/jar

echo "begin copy care-job "
cp ../care-modules/care-job/target/care-job.jar ./care/modules/job/jar

echo "begin copy care-gen "
cp ../care-modules/care-gen/target/care-gen.jar ./care/modules/gen/jar

